local width = 2048;
local height = 2048;
local size = width * height * 30;
local piexls = {};
for i = 1, size do
    piexls[i] = i;
end
print('============================================')
local begin_time_1 = commonlib.GetTimeStamp();
for i = 1, width do
    for j = 1, height do
        __CAPI__.SetWindowPixel(i, j, j * width + i);
    end
end
local end_time_1 = commonlib.GetTimeStamp();
print("-------------1:", end_time_1 - begin_time_1);

local begin_time_2 = commonlib.GetTimeStamp();
__CAPI__.SetWindowPixels(0, 0, width, height, piexls);
local end_time_2 = commonlib.GetTimeStamp();
print("-------------2:", end_time_2 - begin_time_2);
